package com.chihihx.launcher.ui.fragment

import androidx.lifecycle.lifecycleScope
import com.chihihx.launcher.BaseWallPaperFragment
import com.chihihx.launcher.MainActivity
import com.nova.android.tvlauncher.R
import com.nova.android.tvlauncher.databinding.FragmentFocusHxtvBinding
import com.nova.android.tvlauncher.databinding.FragmentSplashHxtvBinding
import com.nova.android.tvlauncher.ext.clickNoRepeatWithAnim
import com.nova.android.tvlauncher.ext.navigateTo
import com_github_lib_base.base.BaseViewModel
import com_github_lib_base.ext.replaceChildFragment
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch

class FocusFragment : BaseWallPaperFragment<FragmentFocusHxtvBinding, BaseViewModel>() {

    override fun initView() {
        mBind.tvNextStep.clickNoRepeatWithAnim {
            requireActivity().supportFragmentManager.navigateTo(R.id.container,
                MainFragment())
        }
        mBind.tvNextStep.requestFocus()
    }
}